package Day07;
/*
定义数组存储4个女朋友的对象，
属性有：姓名，年龄，性别，爱好
计算平均年龄，并且统计低于平均值的恶友几个，并输入；
 */
public class Girl {

    public String name;  //女友的姓名

    public int age; //年龄

    public String gender; //女友的类型

    public String hobby; //女友的爱好

    public Girl() {
    }

    public Girl(String name, int age, String gender, String hobby) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.hobby = hobby;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }
}
